package edu.ufl.cise.sanitas.types.comm;

import java.io.Serializable;

public abstract class Response implements Serializable {

	private Types type;
	
	public enum Status {
		SUCCESS, FAIL, TIMEOUT
	}
	
	private Status status;
	private String errmsg;
	
	protected Response(Types type, Status status, String errmsg) {
		this.type = type;
		this.errmsg = errmsg;
		this.status = status;
	}
	
	public String getErrmsg() {
		return errmsg;
	}

	public Types getType() {
		return type;
	}

	public Status getStatus() {
		return status;
	}
	
}
